package com.dongdong;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableDiscoveryClient    //开启nacos自动注册与服务的自动发现
@MapperScan("com.dongdong.mapper")
@EnableScheduling      //开启自动定时器
@EnableFeignClients       //开启远程调用
public class SeckillApp {
    public static void main(String[] args) {
        SpringApplication.run(SeckillApp.class,args);
    }
}
